﻿Imports Control_Vuelos_ADO
Imports Control_Vuelos_BE

Public Class ManifiestoBL
    ReadOnly _ManifiestoADO As New ManifiestoADO()

    Public Function pr_ActualizarCabecera(ByVal p_C_Manifiesto As C_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_ActualizarCabecera(p_C_Manifiesto)
    End Function

    Public Function pr_ActualizarEstado(ByVal p_CodViaje As String, ByVal p_EstadoManifiesto As String, ByVal p_EstadoVuelo As String) As Boolean
        Return _ManifiestoADO.pr_ActualizarEstado(p_CodViaje, p_EstadoManifiesto, p_EstadoVuelo)
    End Function

    Public Function pr_ActualizarNroValija(ByVal p_CodViaje As String, ByVal p_NroValija As String) As Boolean
        Return _ManifiestoADO.pr_ActualizarNroValija(p_CodViaje, p_NroValija)
    End Function

    Public Function pr_AgregarPasajero(ByVal p_D_Manifiesto As D_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_AgregarPasajero(p_D_Manifiesto)
    End Function

    Public Function pr_AgregarPasajeroManifiesto(ByVal p_C_Manifiesto As C_ManifiestoBE, ByVal p_D_Manifiesto As D_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_AgregarPasajeroManifiesto(p_C_Manifiesto, p_D_Manifiesto)
    End Function

    Public Function pr_GetDetalleManifiesto(ByVal vcodmanifiesto As String) As DataTable
        Return _ManifiestoADO.pr_GetDetalleManifiesto(vcodmanifiesto)
    End Function

    Public Function pr_GetManifiesto(ByVal p_Estado As String) As DataTable
        Return _ManifiestoADO.pr_GetManifiesto(p_Estado)
    End Function

    Public Function pr_ListarManifiesto(ByVal p_CodViaje As String) As DataTable
        Return _ManifiestoADO.pr_ListarManifiesto(p_CodViaje)
    End Function

    Public Function pr_ListarManifiestoBuscar() As DataTable
        Return _ManifiestoADO.pr_ListarManifiestoBuscar()
    End Function

    Public Function pr_NotificarPasajeroManifiesto(ByVal p_CodViaje As String) As String
        Return _ManifiestoADO.pr_NotificarPasajeroManifiesto(p_CodViaje)
    End Function

    Public Function pr_RecuperarCabecera(ByVal p_CodViaje As String) As C_ManifiestoBE
        Return _ManifiestoADO.pr_RecuperarCabecera(p_CodViaje)
    End Function

    Public Function pr_RecuperarDetalle(ByVal p_CodViaje As String, ByVal p_CodReserva As Integer) As D_ManifiestoBE
        Return _ManifiestoADO.pr_RecuperarDetalle(p_CodViaje, p_CodReserva)
    End Function

    Public Function pr_RecuperarListaManifiestoImpresion(ByVal p_CodViaje As String) As DataTable
        Return _ManifiestoADO.pr_RecuperarListaManifiestoImpresion(p_CodViaje)
    End Function

    Public Function pr_RecuperarResponsable(ByVal p_Origen As String) As M_ResponsableVueloBE
        Return _ManifiestoADO.pr_RecuperarResponsable(p_Origen)
    End Function

    Public Function pr_RemoverPasajeroManifiesto(ByVal p_D_Manifiesto As D_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_RemoverPasajeroManifiesto(p_D_Manifiesto)
    End Function

    Public Function pr_UpdateCabeceraManifiestoViaje(ByVal p_C_Manifiesto As C_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_UpdateCabeceraManifiestoViaje(p_C_Manifiesto)
    End Function

    Public Function pr_UpdateDetalleManifiestoViaje(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_CodViajeChange As String) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoViaje(p_CodViaje, p_CodReserva, p_CodViajeChange)
    End Function

    Public Function pr_UpdateDetalleManifiestoLock(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_FlgLock As Int32) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoLock(p_CodViaje, p_CodReserva, p_FlgLock)
    End Function

    Public Function pr_UpdateDetalleManifiestoResponsable(ByVal p_CodViaje As String, ByVal p_CodReserva As String, ByVal p_FlgResponsable As Byte) As Boolean
        Return _ManifiestoADO.pr_UpdateDetalleManifiestoResponsable(p_CodViaje, p_CodReserva, p_FlgResponsable)
    End Function

    Public Function pr_UpdateManifiestoCancelado(ByVal p_CodViaje As String) As Boolean
        Return _ManifiestoADO.pr_UpdateManifiestoCancelado(p_CodViaje)
    End Function

    Public Function pr_AgregarCabeceraManifiesto(ByVal p_C_Manifiesto As C_ManifiestoBE) As Boolean
        Return _ManifiestoADO.pr_AgregarCabeceraManifiesto(p_C_Manifiesto)
    End Function

    Public Function pr_RecuperarListaManifiestoImpresionSinPasajeros(ByVal p_CodViaje As String) As DataTable
        Return _ManifiestoADO.pr_RecuperarListaManifiestoImpresionSinPasajeros(p_CodViaje)
    End Function
End Class